fix twitter bug

Andrew Cantino 10 years ago
parent
commit
67fa336fb9
2 changed files with 4 additions and 1 deletions
  1. 1 1
      Gemfile
  2. 3 0
      bin/threaded.rb

+ 1 - 1
Gemfile

@@ -31,6 +31,7 @@ gem 'protected_attributes', '~>1.0.8' # This must be loaded before some other ge
31 31
 gem 'ace-rails-ap', '~> 2.0.1'
32 32
 gem 'bootstrap-kaminari-views', '~> 0.0.3'
33 33
 gem 'bundler', '>= 1.5.0'
34
+gem 'twitter', '~> 5.8.0' # needs to be loaded before cantino-twitter-stream.
34 35
 gem 'cantino-twitter-stream', github: 'cantino/twitter-stream', branch: 'master'
35 36
 gem 'coffee-rails', '~> 4.0.0'
36 37
 gem 'daemons', '~> 1.1.9'
@@ -64,7 +65,6 @@ gem 'sass-rails',   '~> 4.0.0'
64 65
 gem 'select2-rails', '~> 3.5.4'
65 66
 gem 'spectrum-rails'
66 67
 gem 'therubyracer', '~> 0.12.1'
67
-gem 'twitter', '~> 5.8.0'
68 68
 gem 'typhoeus', '~> 0.6.3'
69 69
 gem 'uglifier', '>= 1.3.0'
70 70
 

+ 3 - 0
bin/threaded.rb

@@ -1,6 +1,9 @@
1 1
 require 'thread'
2 2
 require 'huginn_scheduler'
3 3
 
4
+STDOUT.sync = true
5
+STDERR.sync = true
6
+
4 7
 def stop
5 8
   puts 'Exiting...'
6 9
   @scheduler.stop